﻿using System;
using System.Drawing;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
using DevExpress.LookAndFeel;
using DevExpress.Skins;
using DevExpress.Utils;
using DevExpress.XtraSplashScreen;
using NAGFwk.UI;

namespace SilkeyERP.UI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] arguments)
        {            
            var esAr = new CultureInfo("es-AR");
            var enEN = new CultureInfo("en-US");
            Thread.CurrentThread.CurrentCulture = enEN;
            Thread.CurrentThread.CurrentUICulture = esAr;
            AppearanceObject.DefaultFont = new Font("Segoe UI", 8);
            UserLookAndFeel.Default.SetSkinStyle("Office 2013");
            SkinManager.EnableFormSkins();            
            DevExpress.UserSkins.BonusSkins.Register();

            SplashScreenManager.ShowForm(null, typeof(SsMain), true, true, false, 500);            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Main());
        }        
    }
}
